<?php
/*
Plugin Name: Izwebz Core 2014
Plugin URI: http://izwebz.com
Description: This is plugin Izwebz Core support for new themes Izwebz
Version: 1.0
Author: Mr. Nav - mr.nav90@gmail.com
Author URI: http://izwebz.com/author/mr-nav90/
*/

// # BEGIN WordPress
// <IfModule mod_rewrite.c>
// RewriteEngine On
// RewriteBase /
// RewriteRule ^index\.php$ - [L]
// # Add Rewrite API
// RewriteRule ^izwebz_api/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ index.php?api=izwebz_api&api_name=$1&action=$2&id=$3 [L,QSA]
// RewriteRule ^izwebz_api/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ index.php?api=izwebz_api&api_name=$1&action=$2 [L,QSA]
// RewriteRule ^izwebz_api/([a-zA-Z0-9]+)/$ index.php?api=izwebz_api&api_name=$1 [L,QSA]
// RewriteRule ^izwebz_api/$ index.php?api=izwebz_api [L,QSA]
// RewriteRule ^izwebz_api$ index.php?api=izwebz_api [L,QSA]
// # End Rewrite API
// RewriteCond %{REQUEST_FILENAME} !-f
// RewriteCond %{REQUEST_FILENAME} !-d
// RewriteRule . /index.php [L]
// </IfModule>
// # END WordPress

$wp_rewrite = new WP_Rewrite(); 
/* Settings defines */
define('PLUGIN_DIR',plugin_dir_path(__FILE__));
define('PLUGIN_URL',plugin_dir_url(__FILE__));
define('CORE_DIR',trailingslashit(PLUGIN_DIR).'core/');
define('CORE_URL',trailingslashit(PLUGIN_URL).'core/');
define('CORE_CSS_DIR',trailingslashit(PLUGIN_DIR).'assets/css/');
define('CORE_CSS_URL',trailingslashit(PLUGIN_URL).'assets/css/');
define('CORE_JS_DIR',trailingslashit(PLUGIN_DIR).'assets/js/');
define('CORE_JS_URL',trailingslashit(PLUGIN_URL).'assets/js/');
define('CORE_LIBRARY',trailingslashit(PLUGIN_URL).'assets/library/');
define('CORE_IMAGE_DIR',trailingslashit(PLUGIN_DIR).'assets/images/');
define('CORE_IMAGE_URL',trailingslashit(PLUGIN_URL).'assets/images/');
define('CORE_THEME_URL',CORE_URL."views/".get_template()."/");
define('CORE_TIMTHUMB_URL',CORE_URL."components/timthumb/timthumb.php?src=");
define('CORE_CATEGORY_FEATURED',229);
define('CORE_CATEGORY_HOSTING',313);
define('CORE_CATEGORY_HOSTING_REVIEW',316);
define('CORE_THEME_JS',CORE_THEME_URL."assets/js/");
define('CORE_THEME_CSS',CORE_THEME_URL."assets/css/");
define('CORE_THEME_IMAGE',CORE_THEME_URL."assets/images/");
define('CORE_API_URL',get_option('siteurl')."/izwebz_api/");
define('CORE_CACHE_DIR',CORE_DIR.'caches');
/* Settings requires */
require_once(CORE_DIR.'core.php');
require_once(CORE_DIR.'controllers/CoreController.php');
require_once(CORE_DIR.'models/CoreModel.php');
require_once(CORE_DIR.'helpers/CoreHelper.php');
require_once(CORE_DIR.'components/dumperComponent.php');
require_once(CORE_DIR.'functions.php');
require_once(CORE_DIR.'actions.php');
require_once(CORE_DIR.'filters.php');
require_once(CORE_DIR.'api/CoreAPI.php');
/* Core init */
IzwebzCore::autoloadControllers();
ActionProcessing::init()->ActionRunning();
FilterProcessing::init()->FilterRunning();

?>
